import { createRouter, createWebHistory } from 'vue-router'
import adminRoutes from './admin'
import consultantRoutes from './consultant'

const router = createRouter({
    history: createWebHistory(),
    routes: [
        {
            path: '/',
            redirect: '/login'
        },
        {
            path: '/login',
            name: 'login',
            component: () => import('@/views/auth/Login.vue'),
        },
        ...adminRoutes,
        ...consultantRoutes,
    ]
})
export default router